package com.drop.service.impl;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.drop.dao.UserInformationDao;
import com.drop.entity.User;
import com.drop.service.UserInformationService;
@Service
@Transactional
public class UserInformationServiceImpl implements UserInformationService{
	@Autowired
	public UserInformationDao userdao;
	@Override
	public User getUserInfo(String username) {
		// TODO Auto-generated method stub
		return userdao.getUserInfo(username);
	}
	@Override
	public void updateUserInfo(User user) {
		// TODO Auto-generated method stub
		userdao.updateUserInfo(user);
	}
	@Override
	public User getUserById(int userid) {
		// TODO Auto-generated method stub
		return userdao.getUserById(userid);
	}

}
